package com.chris.entity;
import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Date;
public class loan {
    @JSONField(name = "account")
    private String account;
    @JSONField(name = "journal_id")
    private int journal_id;
    @JSONField(name = "borrow_time")
    private Date borrow_time;
    @JSONField(name = "due_time")
    private Date due_time;
    @JSONField(name = "return_time")
    private Date return_time;
    @JSONField(name = "returned")
    private int returned;

    public loan() {
    }

    @Override
    public String toString() {
        return "loan{" +
                "reader_id='" + account + '\'' +
                ", journal_id=" + journal_id +
                ", borrow_time=" + borrow_time +
                ", due_time=" + due_time +
                ", return_time=" + return_time +
                ", returned=" + returned +
                '}';
    }

    public String getReader_id() {
        return account;
    }

    public void setReader_id(String reader_id) {
        this.account = reader_id;
    }

    public int getJournal_id() {
        return journal_id;
    }

    public void setJournal_id(int journal_id) {
        this.journal_id = journal_id;
    }

    public Date getBorrow_time() {
        return borrow_time;
    }

    public void setBorrow_time(Date borrow_time) {
        this.borrow_time = borrow_time;
    }

    public Date getDue_time() {
        return due_time;
    }

    public void setDue_time(Date due_time) {
        this.due_time = due_time;
    }

    public Date getReturn_time() {
        return return_time;
    }

    public void setReturn_time(Date return_time) {
        this.return_time = return_time;
    }

    public int getReturned() {
        return returned;
    }

    public void setReturned(int returned) {
        this.returned = returned;
    }
}
